//
//  HCFindContentBottomView.m
//  HappyChildren
//
//  Created by WillyZhao on 2016/12/29.
//  Copyright © 2016年 WillyZhao. All rights reserved.
//

#import "HCFindContentBottomView.h"

@implementation HCFindContentBottomView

-(instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        CGSize size_l = [HCUserTools sizeWithText:@"查看更多" withFont:YBKSystemFont(YBKAdaptiveFont(11))];

        UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, size_l.width, size_l.height)];
        label.text = @"查看更多";
        label.font = YBKSystemFont(YBKAdaptiveFont(11));
        label.textColor = [UIColor lightGrayColor];
        [self addSubview:label];
        
        
        UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"happy_find_contentnexrt"]];
        imageView.frame = CGRectMake(label.frame.size.width+3, (size_l.height - 10)/2, 10, 10);
        [self addSubview:imageView];
        self.frame = CGRectMake(frame.origin.x, frame.origin.y, imageView.frame.origin.x+imageView.frame.size.width, size_l.height);
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
